package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wpdcn
 * @since 2020-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_order_goods")
@ApiModel(value="ShopOrderGoodsEntity对象", description="")
public class ShopOrderGoodsEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @Column(comment = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "订单号")
    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @Column(comment = "商品id")
    @ApiModelProperty(value = "商品id")
    private Long goodId;

    @Column(comment = "商品规格id")
    @ApiModelProperty("商品规格id")
    private Long skuId;

    @Column(comment = "规格信息")
    @ApiModelProperty("规格信息")
    private String sku;

    @Column(comment = "购买数量")
    @ApiModelProperty(value = "购买数量")
    private Integer number;

    @Column(comment = "单价")
    @ApiModelProperty(value = "单价")
    private Double price;

    @Column(comment = "订单积分价值")
    @ApiModelProperty("订单积分价值")
    private Double score;


}
